namespace eShop.Model
{
    public class ProductStock
    {
        public int StockId { get; set; }
        public int ProductId { get; set; }
        public string Description { get; set; }
        public double Weight { get; set; }
        public string WeightUnit { get; set; }
        public int StockAvailable { get; set; }
        public int StockAlertCount { get; set; }

        public string FormattedDescription
        {
            get
            {
                return Description;
            }
        }

        public ProductStock() {
            this.WeightUnit = string.Empty;
        }

        public ProductStock(
            int stockId,
            int productId,
            string description,
            double weight,
            string weightUnit,
            int stockAvailable,
            int stockAlertCount
            )
        {
            this.StockId = stockId;
            this.Description = description;
            this.Weight = weight;
            this.WeightUnit = weightUnit;
            this.StockAvailable = stockAvailable;
            this.ProductId = productId;
            this.StockAlertCount = stockAlertCount;
        }
    }
}
